import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler, Toast, ToastController} from 'ionic-angular';
import { MyApp } from './app.component';

import { MobilePage } from '../pages/mobile/mobile.component';
import { ContactPage } from '../pages/robot/robot.component';
import { TabsPage } from '../pages/tabs/tabs';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';

import {WeatherPage} from "../pages/weather/weather.component";
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {HttpModule} from "@angular/http";
import {ShareModule} from "./share.module";
import {ToastService} from "./common/toast.service";
import {AboutPage} from "../pages/about/about.component";

@NgModule({
  declarations: [
    MyApp,
    MobilePage,
    ContactPage,
    WeatherPage,
    AboutPage,
    TabsPage,

  ],
  imports: [
    BrowserModule,
    ShareModule,
    HttpModule,
    FormsModule,
    ReactiveFormsModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    MobilePage,
    ContactPage,
    WeatherPage,
    AboutPage,
    TabsPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    ToastService
    ]
})
export class AppModule {}
